import 'package:flutter_app/generated/json/base/json_convert_content.dart';
import 'package:flutter_app/bean/file_path_entity.dart';

FilePathEntity $FilePathEntityFromJson(Map<String, dynamic> json) {
	final FilePathEntity filePathEntity = FilePathEntity();
	final String? createTime = jsonConvert.convert<String>(json['createTime']);
	if (createTime != null) {
		filePathEntity.createTime = createTime;
	}
	final String? duration = jsonConvert.convert<String>(json['duration']);
	if (duration != null) {
		filePathEntity.duration = duration;
	}
	final String? fileSize = jsonConvert.convert<String>(json['fileSize']);
	if (fileSize != null) {
		filePathEntity.fileSize = fileSize;
	}
	final String? fileType = jsonConvert.convert<String>(json['fileType']);
	if (fileType != null) {
		filePathEntity.fileType = fileType;
	}
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		filePathEntity.id = id;
	}
	final String? isRead = jsonConvert.convert<String>(json['isRead']);
	if (isRead != null) {
		filePathEntity.isRead = isRead;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		filePathEntity.name = name;
	}
	final String? relationId = jsonConvert.convert<String>(json['relationId']);
	if (relationId != null) {
		filePathEntity.relationId = relationId;
	}
	final String? sourcePath = jsonConvert.convert<String>(json['sourcePath']);
	if (sourcePath != null) {
		filePathEntity.sourcePath = sourcePath;
	}
	final String? thumbnailPath = jsonConvert.convert<String>(json['thumbnailPath']);
	if (thumbnailPath != null) {
		filePathEntity.thumbnailPath = thumbnailPath;
	}
	return filePathEntity;
}

Map<String, dynamic> $FilePathEntityToJson(FilePathEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['createTime'] = entity.createTime;
	data['duration'] = entity.duration;
	data['fileSize'] = entity.fileSize;
	data['fileType'] = entity.fileType;
	data['id'] = entity.id;
	data['isRead'] = entity.isRead;
	data['name'] = entity.name;
	data['relationId'] = entity.relationId;
	data['sourcePath'] = entity.sourcePath;
	data['thumbnailPath'] = entity.thumbnailPath;
	return data;
}